This page last changed on Dec 02, 2012 by rp7772.
Below are some IDL script examples, written by 2010-11 BSc Project student, Richard Painter:
Installation Insructions: fixbadpixel.pro
To use the fixbadpixel.pro routine;
- Copy the "fixbadpixel.pro" file to your home folder on Starlink
.compile '~/fixbadpixel.pro'
Or simply let IDL compile the procdure for you by typing in the calling sequence for the fixbadpixel.pro procedure, which is as follows:
result=fixbadpixel(data,mask)
- The following arrays must have been previously read in by the user. All must be of identical dimensions to the raw image frame:
- data: raw image frame
- mask: corresponding mask frame
- result, data and mask can be renamed as required in the above calling sequence.
Installation Insructions: data_reduction.pro
- Follow instructions as above for the data_reduction.pro installation. Ensure you copy both the "fixbadpixel.pro" and "data_reduction.pro" files to your home folder on Starlink before calling this procedure.
- The data_reduction.pro calling sequence is as follows:
result=data_reduction(data,exposure,mbias,mdark,mflat,mask)
- The following arrays must have been previously read in by the user. All must be of identical dimensions to the raw image frame:
- data: raw image frame
- mask: corresponding mask frame
- mbias: corresponding master bias frame
- mdark: corresponding master scaled dark frame
- mflat: corresponding master flat frame
- exposure is an integer number, containing the exposure length of raw image in seconds.
- result, data , mbias, mdark, mflat and mask can be renamed as required in the above calling sequence.
|